package com.woniu.util;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    OK(200, "操作成功"),
    FAIL(500, "操作失败"),
    EXIST(500, "不存在"),
    FORMATFAIL(500, "时间格式错误"),
    INVALID(500, "二维码无效"),
    BOOK_FIND_SUCCESS(2001, "查询成功"),
    BOOK_FIND_FAIL(2002, "查询失败"),
    USER_LOGIN_SUCCESS(1000, "用户登录成功"),
    USER_LOGIN_FAIL_1(1001, "用户名密码不能为空"),
    USER_LOGIN_USERNAME_NOMATCH(1002, "用户名不存在"),
    USER_LOGIN_PASSWORD_NOMATCH(1003, "用户名存在，密码不正确"),
    USER_LOGIN_FAIL_2(1004, "账号已锁定，请联系管理员"),
    USER_LOGIN_MISS(1005, "用户未登录"),
    SYS_BUSY(2000, "系统繁忙，请稍后再试"),
    SYS_FAIL(5005, "出现异常，请联系管理员"),
    KILL_END(3001, "秒杀活动已经结束"),
    ELDERLY_EXIST(4001, "该身份证信息已存在,请联系管理员139******415"),
    WATCHADDRESS_EXIST(4004, "地点不存在"),
    WATCHADDRESS_SUCCESS(2011, "base64Image"),
    EMAILL_SUCCESS(6666, "订阅成功！我们会不定期发送优质内容"),
    EMAILL_EXIST(4002, "该邮箱已存在"),
//    WATCHADDRESS_SUCCESS(2011, "base64Image"),
    SUPPLIER_NOT_FOUND(501, "供应商不存在"),
    SUPPLIER_EXIST_PRODUCTS(502, "该供应商下存在商品，无法操作"),
    PARAM_INVALID(503, "参数无效"),
    FORM_VALID_FAIL(504, "表单验证失败"),
    SUPPLIER_ADD_SUCCESS(2001, "供应商添加成功"),
    SUPPLIER_ADD_FAIL(2002, "供应商添加失败"),
    SUPPLIER_UPDATE_SUCCESS(2003, "供应商更新成功"),
    SUPPLIER_UPDATE_FAIL(2004, "供应商更新失败"),
    SUPPLIER_FREEZE_SUCCESS(2005, "供应商冻结/解冻成功"),
    SUPPLIER_FREEZE_FAIL(2006, "供应商冻结/解冻失败"),
    SUPPLIER_DELETE_SUCCESS(2007, "供应商删除成功"),
    SUPPLIER_DELETE_FAIL(2008, "供应商删除失败"),
    SEARCH_SUCCESS(2009, "搜索成功"),
    SEARCH_FAIL(2010, "搜索失败"),
    PARAM_ERROR(400, "参数错误"),
    NOT_FOUND(404, "资源不存在"),
    REFERENCED(409, "该客户被其他模块引用，请先删除相关资料"),
    NAME_REQUIRED(4001, "客户名称不能为空"),
    CONTACT_REQUIRED(4002, "联系人名称不能为空"),
    PHONE_REQUIRED(4003, "联系人电话不能为空"),
    PHONE_INVALID(4004, "联系人电话格式不正确"),
    REGION_REQUIRED(4005, "区域不能为空"),
    ADDRESS_REQUIRED(4006, "详细地址不能为空"),
    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    DATA_EXIST(400, "数据已存在"),
    DATA_NOT_FOUND(404, "数据不存在"),



    // 新增验证码相关枚举
    CAPTCHA_EMPTY(2010, "验证码不能为空"),
    CAPTCHA_EXPIRED(2011, "验证码已过期，请重新获取"),
    CAPTCHA_ERROR(2012, "验证码错误"),
    SYSTEM_ERROR(500, "系统异常，请稍后再试")
    ;


    private Integer code;
    private String msg;

     ResponseEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
